<div class="workorder-wrap">
	<div class="action-wrap">
		<span class="dropdown-label left">类型：</span>
		<div sp-dropdown="types" sp-value="typeNow" class="left"></div>
	</div>
	<div class="workorder-content">
		<div class="table">
			<div class="table-head">
				<div class="table-cell left" style="width:10%">工单号</div>
				<div class="table-cell left" style="width:15%">标题</div>
				<div class="table-cell left" style="width:10%">用户</div>
				<div class="table-cell left" style="width:25%">创建时间</div>
				<div class="table-cell left" style="width:25%">更新时间</div>
				<div class="table-cell left" style="width:5%">状态</div>
				<div class="table-cell left" style="width:10%">操作</div>
			</div>
			<div class="table-content"  sp-loading="{{baseObj.ajax}}/rest/workOrder/listRead">
				<div class="table-row" ng-repeat="wo in workorderList">
					<div class="table-cell left" style="width:10%" ng-bind="wo.id"></div>
					<div class="table-cell left" ng-class="{unread:wo.readState}" style="width:15%" ng-bind="wo.orderName" ng-click="detail(wo)"></div>
					<div class="table-cell left" style="width:10%" ng-bind="wo.userName"></div>
					<div class="table-cell left" style="width:25%" ng-bind="wo.createTime|date:'yyyy-MM-dd hh:mm'"></div>
					<div class="table-cell left" style="width:25%" ng-bind="wo.updateTime|date:'yyyy-MM-dd hh:mm'"></div>
					<div class="table-cell left" style="width:5%" ng-bind="wo.orderState|workorderFilter"></div>
					<div class="table-cell left" style="width:10%">
						<a ng-click="closeWo(wo)" class="pointer">关闭</a>
					</div>
				</div>
				<div class="table-row empty" ng-show="workorderList.length==0">无内容</div>
			</div>
		</div>
		<div class="pages" ng-show="workorderList.length!=0">
			<span class="prev" ng-click="loadList(p-1)">上一页</span>
			<span class="page-item" ng-repeat="p in pageList track by $index" ng-bind="p" ng-class="{on:p==pageNow}" ng-click="loadList(p)"></span>
			<span class="next" ng-click="loadList(p+1)">下一页</span>
		</div>	
	</div>

</div>